Endpoint: /ocr/<id>
Returns the found text of an image and their corresponding meta data.
Request
URL
Method: GET
/api/ocr/<id>
Request Parameters
id: ID of the image (required)
Request Body
no request body
Response
Response Elements
id: ID of the requested imageimageTexts: list of texts in imageimageText.id: ID of texts in imageimageText.text: found text contentimageText.top: distance from top of found textimageText.left: distance from left of found textimageText.height: height of found textimageText.width: width of found textimageText.confidence: confidence of ocr to detect found text betweeen 0 (bad) and 100 (good)
Examples
Request
GET /api/ocr/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Content-type: application/json
Response
{
"id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"imageTexts": [
{
"text": "OVERTHINKING",
"top": "280px",
"left": "214px",
"height": "319px",
"width": "23px",
"confidence": 90.360764
},
{
"text": "no",
// ...
},
// ...
]
}